-- GENERATED SPELL FOR [Irontree Stomper] --


function spell0_7139(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(45,pUnit)
pUnit:RegisterEvent('Sorts_7139', 587, 1)
end

function Sorts_7139(pUnit, Event)
local choix_sorts_7139 = math.random(0, 0)
if choix_sorts_7139 == 0 then
pUnit:RegisterEvent('spell0_7139', 1, 1)
end
end

function mob7139_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7139', math.random(1500, 3000), 1)
end

function mob7139_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7139_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7139_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7139, 1, 'mob7139_Action')
RegisterUnitEvent(7139, 2, 'mob7139_Leave')
RegisterUnitEvent(7139, 3, 'mob7139_Kill')
RegisterUnitEvent(7139, 4, 'mob7139_Die')
